package com.sh.data.engine.application.model.request.normalization;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@Schema
public class TblRelationRemoveRequest {

    /**
     * 主表id
     */
    @NotNull
    @Min(value = 1)
    @Schema(description = "主表id")
    private Long mainTableId;

    /**
     * 外键关联表id
     */
    @NotNull
    @Min(value = 1)
    @Schema(description = "外键关联表id")
    private Long foreignTableId;
}
